package com.baizhi.Api;

import com.baizhi.service.AudioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/audioApi")
public class AudioApi {
    @Autowired(required = false)
    private AudioService audioService;

    @GetMapping("testAudio/{page},{limit},{audioName}")
    public Map selectAll(@PathVariable("page") int page,@PathVariable("limit") int limit,@PathVariable("audioName") String audioName){
        return audioService.selectAll(page, limit, audioName);
    }
}
